package com.itheima.pojo;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Student {
    /**
     *  id int primary key auto_increment,
     *     name varchar(50),
     *     no varchar(50),
     *     gender int ,
     *     phone varchar(50),
     *     degree int ,
     *     id_card varchar(50),
     *     is_college int,
     *     address varchar(50),
     *     graduation_date datetime,
     *     violation_count int,
     *     violation_score int,
     *     clazz_id  int,
     *     clazz_name varchar(50),
     *     create_time datetime,
     *     update_time datetime
     */
    private Integer id;
    private String name;
    private String no;
    private Integer gender;
    private String phone;
    private Integer degree;
    private String idCard;
    private Integer isCollege;
    private String address;
    private LocalDate graduationDate;
    private Integer violationCount;
    private Integer violationScore;
    private Integer clazzId;
    private String clazzName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public Student() {
    }

    public Student(Integer id, String name, String no, Integer gender, String phone, Integer degree, String idCard, Integer isCollege, String address, LocalDate graduationDate, Integer violationCount, Integer violationScore, Integer clazzId, String clazzName, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.name = name;
        this.no = no;
        this.gender = gender;
        this.phone = phone;
        this.degree = degree;
        this.idCard = idCard;
        this.isCollege = isCollege;
        this.address = address;
        this.graduationDate = graduationDate;
        this.violationCount = violationCount;
        this.violationScore = violationScore;
        this.clazzId = clazzId;
        this.clazzName = clazzName;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", gender=" + gender +
                ", phone='" + phone + '\'' +
                ", degree=" + degree +
                ", idCard='" + idCard + '\'' +
                ", isCollege=" + isCollege +
                ", address='" + address + '\'' +
                ", graduationDate=" + graduationDate +
                ", violationCount=" + violationCount +
                ", violationScore=" + violationScore +
                ", clazzId=" + clazzId +
                ", clazzName='" + clazzName + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getDegree() {
        return degree;
    }

    public void setDegree(Integer degree) {
        this.degree = degree;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getIsCollege() {
        return isCollege;
    }

    public void setIsCollege(Integer isCollege) {
        this.isCollege = isCollege;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public LocalDate getGraduationDate() {
        return graduationDate;
    }

    public void setGraduationDate(LocalDate graduationDate) {
        this.graduationDate = graduationDate;
    }

    public Integer getViolationCount() {
        return violationCount;
    }

    public void setViolationCount(Integer violationCount) {
        this.violationCount = violationCount;
    }

    public Integer getViolationScore() {
        return violationScore;
    }

    public void setViolationScore(Integer violationScore) {
        this.violationScore = violationScore;
    }

    public Integer getClazzId() {
        return clazzId;
    }

    public void setClazzId(Integer clazzId) {
        this.clazzId = clazzId;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
